package com.sgb.kjwl.model.entity.user;

import com.google.gson.annotations.SerializedName;

/**
 * 用户收货地址
 */
public class UserAddressEntity {
    @SerializedName(value = "id", alternate = {"theID"})
    private String id;
    @SerializedName(value = "name", alternate = {"consigneeName"})
    private String name;
    @SerializedName(value = "phone", alternate = {"concatPhone"})
    private String phone;
    @SerializedName("isDefault")
    private boolean defaultAdress;
    @SerializedName(value = "detail", alternate = {"address"})
    private String detail;
    @SerializedName("provinceName")
    private String provinceName;
    @SerializedName(value = "provinceNo", alternate = {"provinceCode"})
    private String provinceNo;
    @SerializedName("cityName")
    private String cityName;
    @SerializedName(value = "cityNo", alternate = {"cityCode"})
    private String cityNo;
    @SerializedName("distinctName")
    private String districtName;
    @SerializedName(value = "distinctNo", alternate = {"areaId", "distinctCode"})
    private String districtNo;
    @SerializedName("companyName")
    private String companyName;
    @SerializedName("postalCode")
    private String postalCode;

    public boolean isDefaultAdress() {
        return defaultAdress;
    }

    public void setDefaultAdress(boolean defaultAdress) {
        this.defaultAdress = defaultAdress;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDetail() {
        return detail;
    }

    public String getAddress() {
        return provinceName + cityName + districtName + detail;
    }

    public String getAddress2() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
}
